﻿<%@ Page Title="Your Community" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Community.aspx.cs" Inherits="LikeUsWebSite.Community" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Your Community
    </h2>
        <asp:DataGrid ID="DataGrid1" Runat="server" AutoGenerateColumns="False" 
            CellPadding="5" DataKeyField="idusers" EditItemStyle-BackColor="#F7F7F7"  BorderColor="white"
            HeaderStyle-BackColor="#F7F7F7" HorizontalAlign="Justify">
            <FooterStyle BackColor="PaleGoldenrod" />
            <SelectedItemStyle BackColor="Control" />
            <EditItemStyle BackColor="#F7F7F7" />
            <ItemStyle BackColor=""/>
            <HeaderStyle BackColor="White" Font-Bold="true" />
            <Columns>
            <asp:TemplateColumn>
                    <HeaderStyle Width="100px" />
                    <ItemTemplate><center>
                        <asp:Image ID="Image1" Runat="server" Height="100"
                            ImageUrl='<%# DataBinder.Eval(Container.DataItem, "image")%>' />
                            <hr />
                            </center>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn>
                    <HeaderStyle Width="100px" />
                    <ItemTemplate>
                    <a href="./Friend.aspx?id=<%# DataBinder.Eval(Container.DataItem, "idusers") %>">
							<%# DataBinder.Eval(Container.DataItem, "name") %>
                            </a>
                             <hr />
					</ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn>
                    <HeaderStyle Width="120px" />
                    <ItemTemplate>
						Match: <%# DataBinder.Eval(Container.DataItem, "distance")%> %
                        <hr />
					</ItemTemplate>
                </asp:TemplateColumn>
            </Columns>
        </asp:DataGrid>
</asp:Content>